package cn.caskm.souvenirshopsystem.service;

import cn.caskm.souvenirshopsystem.domain.Result;
import cn.caskm.souvenirshopsystem.domain.dto.PageDTO;
import cn.caskm.souvenirshopsystem.domain.dto.UpdatePasswordFormDTO;
import cn.caskm.souvenirshopsystem.domain.po.AdminUser;
import cn.caskm.souvenirshopsystem.domain.query.AdminUserListQuery;
import cn.caskm.souvenirshopsystem.domain.vo.AdminUserVO;
import com.baomidou.mybatisplus.extension.service.IService;

public interface AdminUserService extends IService<AdminUser> {

    Result<String> login(String userName, String password);

    Result<PageDTO<AdminUserVO>> adminList(AdminUserListQuery query);

    Result<AdminUserVO> detail(Long id);

    void saveOrUpdateUser(AdminUser user);

    Result<AdminUserVO> getLoginUserInfo();

    void updatePassword(UpdatePasswordFormDTO body);
}
